package swf;

class BinaryData extends String {
	public function new ( id : Int, data : String ) {
		var bin = UI16.fromInt( id );
		bin += UI32.fromInt( 0 );
		bin += data;
		super( RecordHeader.create( 0x57, bin.length ) + bin );
	}
	
	public function toString () : String {
		return this;
	}
}
